package org.taobao.ibatiside.ui.util;

import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;

public class SqlmapFileDialog extends ResourceDialog {
	public static final String XML_EXT="xml";
	public SqlmapFileDialog(Shell parentShell, IJavaProject jp) {
		super(parentShell, jp);
	}
	@Override
	protected void configureShell(Shell newShell) {
		super.configureShell(newShell);
		newShell.setText("SQLMap File");
	}
	@Override
	protected Control createDialogArea(Composite parent) {
		Control area = super.createDialogArea(parent);
		setTitle("File");
		setMessage("Create a iBATIS SQLMAP file");
		lblNotes.setText("no '.xml' extension");
		return area;
	}
	@Override
	public String getFileExtension() {
		return XML_EXT;
	}
}
